<template>
	<view class="template">
		<view class="title-wrappar">
			<view class="text">中央广播电视塔门票</view>
			<view class="time">
				<text>预订时间</text>
				<view class="time-icon">
					<text>2023-4-20</text>
					<u-icon name="arrow-right" color="#cccccc" size="14"></u-icon>
				</view>
			</view>
		</view>

		<view class="vote-wrappar">
			<view class="vote-wrappar-item">
				<view class="vote-wrappar-item-info">
					<view class="">成人登塔门票</view>
					<view class="price">
						<text>￥85</text>
						<text style="color:#F59A23; font-size: 24rpx;margin-left: 10rpx;">购票须知></text>
					</view>
				</view>
				<view class="cell-right">
					<u-number-box v-model="value" @change="valChange">
						<view slot="minus" class="minus">
							<u-icon name="minus" size="12"></u-icon>
						</view>
						<text slot="input" style="width: 30px;text-align: center;" class="input">{{value}}</text>
						<view slot="plus" class="plus">
							<u-icon name="plus" color="#FFFFFF" size="12"></u-icon>
						</view>
					</u-number-box>
				</view>
			</view>
		</view>
		
		<view class="tools">
			<text>预订其它票</text>
			<view class="tools-btn">展开预订</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				totalPrice: 0,
				value: 0
			}
		},
		methods: {
			valChange(e) {
				// this.totalPrice = e.value * this.ticketData.productPrice;
				// this.totalPrices = this.totalPrice.toFixed(1);
			},
		}
	}
</script>
<style lang="scss" scoped>
	.template{
		padding: 0 30rpx;
	}
	.tools{
		display: flex;
		justify-content: space-between;
		.tools-btn{
			border-radius: 16rpx;
			border: 1px solid rgba(121, 121, 121, 1);
			padding: 8rpx 14rpx;
		}
	}
	.vote-wrappar {
		margin: 20rpx 0;
		.vote-wrappar-item {
			display: flex;
			justify-content: space-between;
			align-items: center;
			.vote-wrappar-item-info {
				.price{
					display: flex;
					align-items: flex-end;
				}
			}
		}
	}

	.title-wrappar {
		.text {
			font-size: 32rpx;
			margin-bottom: 18rpx;
			font-weight: bold;
		}

		.time {
			display: flex;
			justify-content: space-between;

			.time-icon {
				display: flex;
				align-items: center;
			}
		}

		padding: 20rpx 0;
		border-bottom: 1px solid #f2f2f2;
	}

	.minus {
		width: 22px;
		height: 22px;
		border-width: 1px;
		border-color: #E6E6E6;
		border-top-left-radius: 100px;
		border-top-right-radius: 100px;
		border-bottom-left-radius: 100px;
		border-bottom-right-radius: 100px;
		@include flex;
		justify-content: center;
		align-items: center;
	}

	.plus {
		width: 22px;
		height: 22px;
		background-color: #f74062;
		border-radius: 50%;
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		justify-content: center;
		align-items: center;
	}
</style>